<ul class="sf-menu">
    <li class="ui-widget"><a title="<?php echo Yii::t('yii','Home'); ?>" href="/home"><?php echo Yii::t('yii','Home'); ?></a></li>
    <?php if(Yii::app()->user->isGuest): ?>
    <li class="ui-widget"><a title="<?php echo Yii::t('yii','News'); ?>" href="/news"><?php echo Yii::t('yii','News'); ?></a></li>
    <li class="ui-widget"><a title="<?php echo Yii::t('yii','About us'); ?>" href="/about"><?php echo Yii::t('yii','About us'); ?></a>
        <div class="hidden">
            <ul>
                <li><a title="" href="/eduow"  onclick="window.location.href='#eduow';get_content('eduow')"><?php echo Yii::t('yii','About the project'); ?></a></li>
                <li><a title="" href="/team"  onclick="window.location.href='#team';get_content('team')"><?php echo Yii::t('yii','Who are we'); ?></a>	
		</li>
                <li><a title="" href="/site/contact"  onclick="window.location.href='#site/contact';get_content('site/contact')"><?php echo Yii::t('yii','Contact'); ?></a></li>
            </ul>
        </div>
    </li>
    <?php endif; ?>
    <li class="ui-widget"><a title="<?php echo Yii::t('yii','Collector'); ?>" href="/collector"><?php echo Yii::t('yii','Collector'); ?></a></li>
    <li class="ui-widget"><a title="<?php echo Yii::t('yii','Articles'); ?>" href="/post" class="static"><?php echo Yii::t('yii','Articles'); ?></a>
        <div class="hidden">
            <ul>
                <?php if(!Yii::app()->user->isGuest): ?>
                <li><a href="/post/create" onclick="window.location.href='#post/create';get_content('post/create')"><?php echo Yii::t('yii','Create new'); ?></a></li>
                <li><a href="/post/mine" onclick="window.location.href='#post/mine';get_content('post/mine')"><?php echo Yii::t('yii','Your articles'); ?></a></li>
		<li><a href="/post/favorite" onclick="window.location.href='#post/favorite';get_content('post/favorite')"><?php echo Yii::t('yii','Favorite articles'); ?></a></li>
                <?php endif; ?>
                <li><a href="/post" onclick="window.location.href='#post';get_content('post')"><?php echo Yii::t('yii','Last articles'); ?></a></li>
                <li><a href="#"><?php echo Yii::t('yii','Categories'); ?></a>
		    <ul>
                    <?php $this->widget('ArticlesMenu'); ?>
			</ul>
                </li>
            </ul>
        </div>
    </li>
    <?php if(!Yii::app()->user->isGuest): ?>
    <li class="ui-widget"><a title="<?php echo Yii::t('yii','Communicator'); ?>" href="/communicator"><?php echo Yii::t('yii','Communicator'); ?></a></li>
    <li class="ui-widget"><a title="<?php echo Yii::t('yii','Notes'); ?>" href="/note"><?php echo Yii::t('yii','Notes'); ?></a></li>
    <?php endif; ?>
    <li class="ui-widget"><a title="<?php echo Yii::t('yii','Search'); ?>" href="/search"><?php echo Yii::t('yii','Search'); ?></a></li>
</ul>
